<%--
  Created by IntelliJ IDEA.
  User: 23793
  Date: 2021/10/20
  Time: 11:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <div id="ch">

    </div>
</body>
<script src="http://libs.baidu.com/jquery/2.1.4/jquery.min.js"></script>
<script type="text/javascript">
    function getUrlParam(name) {
        var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
        var r = window.location.search.substr(1).match(reg);
        if (r!=null) return unescape(r[2]);
        return null;
    }
    var id = getUrlParam("id");
    $.ajax({
        "url":"/XiangMu_war_exploded/indexAi",
        "type":"post",
        "data":{"id":id},
        "dataType":"json",
        "success":function(r){
            var appinfo = JSON.parse(r)
            var html = "";
            html+='<h1>软件名称：'+appinfo.softwareName+'</h1>'
            html+='<h1>apk名称：'+appinfo.apkName+'</h1>'
            html+='<h1>软件大小：'+appinfo.softwareSize+'</h1>'
            var pintai = null;
            if(appinfo.flatformId==0){
                pintai="Steam";
            }else{
                pintai="暴雪战网"
            }
            html+='<h1>所属平台：'+pintai+'</h1>'
            html+='<h1>创建时间：'+appinfo.createdDate+'</h1>'
            $("#ch").append(html);
        },
        "error":function(){
            alert("服务器错误");
        }
    })
</script>
</html>
